<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style type="text/css">
        *{
            font-size: 14px;
        }
        #ord{
            margin-top: 20px;
        }
        table{
            width:100%;
            margin: auto;
            text-align: center;
            background: #fff;
        }
        th{
            background:rgb(18,162,225);
            color: #fff;
        }
        td{
            padding: 5px ;
            background: #ccc;
        }
    </style>
</head>
<body>
<div id="ord">
<table cellspacing="1">
    <tr>
        <th rowspan="2">下单时间</th>
        <th rowspan="2">渠道</th>
        <th rowspan="2">运单号</th>
        <th rowspan="2">国际单号</th>
        <th rowspan="2">目的国</th>
        <th rowspan="2">品名</th>
        <th rowspan="2">包裹件数</th>
        <th rowspan="2">计费重量(kg)</th>
        <th colspan="3">体积</th>
        <th rowspan="2"> 预算费用(￥)</th>
        <th rowspan="2">是否付款</th>
        <th rowspan="2">备注</th>
        <th rowspan="2">订单状态</th>
        <th rowspan="2">操作</th>
    </tr>
    <tr>
        <th>长</th>
        <th>宽</th>
        <th>高</th>
    </tr>
    <?php if(is_array($data)): foreach($data as $key=>$value): ?><tr>
            <td><?php echo ($value['ord_time']); ?></td>
            <td><?php echo ($value['company']); ?></td>
            <td><?php echo ($value['way']); ?></td>
            <?php if($value['transit'] == false): ?><td>未转运</td>
                <?php else: ?>
                <td><?php echo ($value['transit']); ?></td><?php endif; ?>
            <td><?php echo ($value['cname']); ?>&nbsp;&nbsp;<?php echo ($value['ename']); ?></td>
            <td><?php echo ($value['g_cname']); ?></td>
            <td><?php echo ($value['piece_num']); ?></td>
            <td><?php echo ($value['weight']); ?></td>
            <td colspan="3"><?php echo ($value['volume']); ?></td>
            <td><?php echo ($value['money']); ?></td>
            <?php if($value['ord_status'] ==1): ?><td>已付款</td>
                <?php else: ?>
                <td>未付款</td><?php endif; ?>
            <td><?php echo ($value['remarks']); ?></td>
            <?php if($value['statu'] ==false): ?><td></td>
                <?php else: ?>
                <td><?php echo ($value['statu']); ?></td><?php endif; ?>
            <td>
                <?php if($value['cancel']==1): ?><s>运单已取消</s>
                    <?php else: ?>
                    <a onclick="return ConfirmDel();" href="/personage/ord_cancel/nid/<?php echo ($value['order_id']); ?>">取消运单</a><?php endif; ?>
            </td>
        </tr><?php endforeach; endif; ?>
    <tr>
        <td colspan="16"></td>
    </tr>
</table>
</div>
</body>
</html>